#ifndef FADERWIDGET_H
#define FADERWIDGET_H

#include <QWidget>

class FaderWidget : public QWidget
{
    Q_OBJECT

public:
    FaderWidget(QWidget *parent = nullptr);
    ~FaderWidget();

    void start();

protected:
    void paintEvent(QPaintEvent *event);

private:
    QTimer *timer;
    int currentAlpha;
    QColor startColor;
    int duration;

};
#endif // FADERWIDGET_H
